package com.qin.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qin.mall.service.OmsOrderSettingService;
import com.qin.mall.domain.OmsOrderSetting;
import com.qin.mall.mapper.OmsOrderSettingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 覃剑
* @description 针对表【oms_order_setting(订单设置表)】的数据库操作Service实现
* @createDate 2022-11-10 13:29:11
*/
@Service
public class OmsOrderSettingServiceImpl extends ServiceImpl<OmsOrderSettingMapper, OmsOrderSetting>
    implements OmsOrderSettingService {
    
    @Autowired
    private OmsOrderSettingMapper orderSettingMapper;

    /**
     * 获取指定订单设置
     */
    @Override
    public OmsOrderSetting getItem(Long id) {
        OmsOrderSetting orderSetting = orderSettingMapper.selectById(id);
        return orderSetting;
    }

    /**
     * 修改指定订单设置
     */
    @Override
    public int update(Long id, OmsOrderSetting orderSetting) {
        orderSetting.setId(id);
        int update = orderSettingMapper.updateById(orderSetting);
        return update;
    }
}




